/**
 *  文件名:LoginActivity.java
 *  修改人:lihangjie
 *  创建时间:2015-9-2 下午10:48:25
 */
package com.sharemob.tinchat.modules.account;

import android.os.Bundle;
import android.view.Window;

import com.sharemob.tinchat.R;
import com.sharemob.tinchat.base.BaseActivity;
import com.sharemob.tinchat.base.Callback;
import com.sharemob.tinchat.modules.dao.cache.CacheManager;
import com.sharemob.tinchat.modules.launch.MainActivity;

/**
 * 
 * <一句话功能简述>
 *
 * @author lihangjie
 * version [版本号,2015-9-2 下午10:48:25]
 * @see    [相关类/方法]
 * @since  [产品/模块版本]
 *
 */
public class LoginActivity extends BaseActivity {

    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_login);
        
        exitView(R.id.title_back, R.anim.activity_close,0);
        
        BtnEvent(R.id.tv_forget_password,new Callback(){
			public void doDown() {
				gotoViewByAnim(LoginActivity.this, ForgetPasswordActivity.class, R.anim.in_from_right,true);
			}
        });
        
        BtnEvent(R.id.btn_login,new Callback(){
     			public void doDown() {
     				CacheManager.getInstance().PhoneLogin();
     				gotoViewByAnim(LoginActivity.this, MainActivity.class, R.anim.in_from_zoom,true);
     			}
             });
    }

	protected void keyEventOfListView(int position, int id) {
		
	}


}
